package com.dxx.cloud.admin.module.request;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Date;

/**
 * @author 37048
 */
@Schema(description = "添加app用户请求体")
@Data
public class AppUserAddRequest {

    @Schema(description ="商户id",example="1")
    @NotNull
    private Long merId;

    @Schema(description ="门店id",example="1")
    @NotNull
    private Long shopId;

    @Schema(description ="1微信",example = "1")
    private Integer appType = 1;

    @Schema(description ="wx的openId",example = "abdsfwefwefwef")
    @NotEmpty
    private String openId;

    @Schema(description ="微信昵称",example = "我是昵称")
    private String nickName;

    @Schema(description ="微信头像",example = "asdfjwoe.png")
    private String avatarUrl;

    @Schema(description ="上次登录时间")
    @JsonIgnore
    private Date lastLogin = new Date();

    private String operator;

    private String creator;


}
